package com.ford.trade.service.impl;

import com.ford.trade.entity.AokeFenxi;
import com.ford.trade.repository.AokeFenxiRepository;
import com.ford.trade.service.AokeFenxiService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: ford
 * @date: 2022/4/25 20:49
 */
@Service
public class AokeFenxiServiceImpl implements AokeFenxiService {
    @Resource
    private AokeFenxiRepository aokeFenxiRepository;

    @Override
    public void save(AokeFenxi fenxi) {
        aokeFenxiRepository.save(fenxi);
    }

    @Override
    public List<AokeFenxi> findByIndexId(Long indexId) {
       return aokeFenxiRepository.findAllByIndexId(indexId);
    }
}
